<?php

/* 
 * Author: Mario Jose
 * email:  mariognu-free@yahoo.com.br
 *
 * created: 12 October 2007
 * modified: August, 3rd 2009	 	 
*/

/*
  This script is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  This script is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * Define language that will show the page
 *
 * @global string $lang Abreviations of language
 * @global string $langFilesPath Directory location of languages
*/

// path to languages directory from root url. Put '/' at last
$langFilesPath = $pathToRoot . "languages/";

// Define language default witch pages if do not defined
if ($_GET['lang'] == 'pt-br') 
	{
	$lang = $_GET['lang'];
   @include_once ($langFilesPath . $lang . '/messages.php');
	}
elseif ($_GET['lang'] == 'en') 
	{
	$lang = $_GET['lang'];
   @include_once ($langFilesPath . $lang . '/messages.php');
	}
else 
	{ // default language if anyone be defined
	$lang = 'pt-br';
   @include_once ($langFilesPath . $lang . '/messages.php');
	}

?>